﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Commons.Entity.PagedList<WebManageUser_Strategy>>" %>

<%@ import Namespace="EF.Commons.Background.Entity" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    WebManageLoginList
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h1>
        <span class="action-span1"><a href="javascript:void(0);" target="_self">系统管理</a> - 员工管理－登录管理信息列表</span>
        <div style="clear: both">
        </div>
    </h1>
    <%: Html.ActionLink("新  增", "WebManageLogin", new { userid = Request.QueryString["id"], Page = Request.QueryString["page"] }, UserOperatorRole.ModifyEvent)%>
    <%: Html.ActionLink("返  回", "WebManageUserList", UserOperatorRole.ModifyEvent)%>
    <table cellpadding="3" cellspacing="1" id="res_itemList" class="liebiao_table" width="90%">
        <thead>
            <tr>
                <th>
                    后台用户ID
                </th>
                <th>
                    IP地址区范围
                </th>
                <th>
                    起始时间
                </th>
                <th>
                    结束时间
                </th>
                <th>
                    状态
                </th>
                <th>
                    创建时间
                </th>
                <th>
                    操作
                </th>
            </tr>
        </thead>
        <tbody>
            <% foreach (var item in Model)
               { %>
            <tr>
                <td>
                    <%: item.ManageUserID%>
                </td>
                <td>
                    <%: item.IPArea%>
                </td>
                <td>
                    <%: item.BeginDate.ToString("yyyy-MM-dd")%>
                </td>
                <td>
                    <%: item.EndDate.ToString("yyyy-MM-dd")%>
                </td>
                <td>
                    <%: ((Entity.CommonEnums.Status)item.Status).GetDescription()%>
                </td>
                <td>
                    <%: item.CreateDate.ToString("yyyy-MM-dd")%>
                </td>
                <td>
                    <%: Html.ActionLink("编 辑", "WebManageLogin", new { userid = Request.QueryString["id"], id = item.PrimaryKey[0], Page = Request.QueryString["page"] }, UserOperatorRole.ModifyEvent)%>
                </td>
            </tr>
            <% } %>
        </tbody>
        <tfoot>
            <tr>
                <td colspan="8">
                    <%:Html.Pager(Model)%>
                </td>
            </tr>
        </tfoot>
    </table>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ScriptContent" runat="server">
    <script type="text/javascript" language="javascript">
        tablelist(); // 表格列表样式
    </script>
</asp:Content>
